//
//  SecBarCollectionViewCell.m
//  集金金融
//
//  Created by 李东晓 on 15/11/26.
//  Copyright © 2015年 李东晓. All rights reserved.
//

#import "SecBarCollectionViewCell.h"

@implementation SecBarCollectionViewCell
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        _lableche = [[UILabel alloc]initWithFrame:CGRectMake(23*D_width, 16*D_height, 53*D_width, 17*D_height)];
        [_lableche setText:@"爱车贷"];
        [_lableche setFont:[UIFont systemFontOfSize:15*D_height]];
        [self addSubview:_lableche];
        
        _imageHB = [[UIImageView alloc]initWithFrame:CGRectMake(84*D_width, 18*D_height, 14*D_width, 14*D_height)];
        [_imageHB setBackgroundColor:[UIColor redColor]];
        [_imageHB setImage:[UIImage imageNamed:@"HB"]];
        [self addSubview:_imageHB];
        
        _lableBFH = [[UILabel alloc]initWithFrame:CGRectMake(23*D_width, 54*D_height, 31*D_width, 20*D_height)];
        [_lableBFH setText:@"9.0"];
        [self addSubview:_lableBFH];
        
        _lableDay = [[UILabel alloc]initWithFrame:CGRectMake(93*D_width, 54*D_height, 25*D_width, 20*D_height)];
        [_lableDay setText:@"60"];
        [self addSubview:_lableDay];
        
        _lableWan = [[UILabel alloc]initWithFrame:CGRectMake(159*D_width, 54*D_height, 38*D_width, 20*D_height)];
        [_lableWan setText:@"200"];
        [self addSubview:_lableWan];
        
        _imageTJ = [[UIImageView alloc]initWithFrame:CGRectMake(285*D_width, 21*D_height, 60*D_width, 60*D_height)];
        [_imageTJ setBackgroundColor:[UIColor greenColor]];
        [_imageTJ setImage:[UIImage imageNamed:@"TJ"]];
        [self addSubview:_imageTJ];
        
        _lableXX = [[UILabel alloc]initWithFrame:CGRectMake(26*D_width, 97*D_height, 280*D_width, 12*D_height)];
        [_lableXX setText:@"还款方式：按月付息，到期还本 担保机构：中国银行"];
        [_lableXX setFont:[UIFont systemFontOfSize:12*D_height]];
        [self addSubview:_lableXX];
        
        _Xian = [[UIView alloc]initWithFrame:CGRectMake(0, 86*D_height, 360*D_width, 1)];
        [_Xian setBackgroundColor:kGlobalBg];
        [self addSubview:_Xian];
    }
    return self;
}
@end
